package com.ossjk.oa.system.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.ossjk.core.base.entity.BaseEntity;

/**
 * <p>
 * 地区表
 * </p>
 *
 * @author chair
 * @since 2019-02-03
 */
public class Area extends Model<Area> {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId("ID")
    private String id;
    /**
     * 地区名称
     */
    @TableField("NAME")
    private String name;
    /**
     * 地区父级ID
     */
    @TableField("PID")
    private String pid;
    /**
     * 序号
     */
    @TableField("SLNO")
    private Integer slno;
    /**
     * 地区深度
     */
    @TableField("DEEP")
    private Integer deep;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public Integer getSlno() {
        return slno;
    }

    public void setSlno(Integer slno) {
        this.slno = slno;
    }

    public Integer getDeep() {
        return deep;
    }

    public void setDeep(Integer deep) {
        this.deep = deep;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Area{" +
        ", id=" + id +
        ", name=" + name +
        ", pid=" + pid +
        ", slno=" + slno +
        ", deep=" + deep +
        "}";
    }
}
